package cn.gailvlun.gll.push;

import android.support.annotation.StringDef;

import cn.gailvlun.gll.chatlib.bean.ChatRes;



public class JPushPayload {
    @StringDef(value = {
            heartEmotion,
            commentEmotion,
            inviteFriend,
            ensureInviteFriend,
            chat,
            createRoom,
            preCloseRoom,
            closeRoom,
            roomTask,
            changeDevice,
            roomReviewResult
    })
    public @interface Type {}

    public final static String heartEmotion = "emo_heart";
    public final static String commentEmotion = "emo_comment_add";
    public final static String inviteFriend = "friend_invite";
    public final static String ensureInviteFriend = "friend_access";
    public final static String chat = "chat";
    public final static String createRoom = "create_room";
    public final static String preCloseRoom = "pre_close_room";
    public final static String closeRoom = "close_room";
    public final static String roomTask = "room_task";
    public final static String changeDevice = "ChangeDevice";
    public final static String roomReviewResult = "room_censor_result";
    public final static String startRegisterRoom = "start_register_room";

    @Type
    private String type;
    private int id;
    private ChatRes msg;

    @Type
    public String getType() {
        return type;
    }

    public void setType(@Type String type) {
        this.type = type;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public ChatRes getMsg() {
        return msg;
    }

    public void setMsg(ChatRes msg) {
        this.msg = msg;
    }
}
